package com.lyx.question.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lyx.question.dto.Indexchapter;
import com.lyx.question.dto.ThreeChapterInfo;
import com.lyx.question.entity.OneSubject;
import com.lyx.question.entity.Subject;

import com.lyx.question.vo.ChildrenVo;
import com.lyx.question.vo.OneSubjectVo;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 14667
 * @date 2022/7/20 10:51
 */
@Service
public interface SubjectService extends IService<Subject> {
    List<OneSubject> listWithTree();

    boolean addChapter(OneSubjectVo subjectVo);

    Boolean addChildChapter(ChildrenVo childrenVo);

    boolean deleteChapter(Integer id);


    List<Indexchapter> indexChapter();

    void show(Integer chapterId, String chapterName);

    void close(String chapterName, Integer chapterId);

    List<ThreeChapterInfo> indexThreeChapterInfo(HttpServletRequest request, Integer chapterId);

}
